package Views;

import Source.LoginUser;
import UCM.UCLoginUser;
import Views.Base.BaseViewLoginUser;



/**
 *
 * @author Joshua King
 */
public abstract class ViewLoginInt extends BaseViewLoginUser  {
    private final UCLoginUser UCLogin = new UCLoginUser(this);
    public LoginUser model;
    
    /**
     * Construction that initualises the variables for the login user view
     */
    public ViewLoginInt() {
        loginButton.addActionListener(new AdapterUCCToAL(UCLogin));
    }
    
    /**
     * loads the model to the view
     * @param model
     */
    public void loadTo(LoginUser model) {
        this.model = model;
    }
    
    public abstract void setModelData();
    public abstract void updateFailure();
    public abstract void updateSuccess();
}
